package cn.sxt.yxl.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.util.PageInfoUtil;
import cn.sxt.yxl.pojo.AAdmins;
import cn.sxt.yxl.pojo.AAnswer;
import cn.sxt.yxl.pojo.AColumns;
import cn.sxt.yxl.pojo.AItems;
import cn.sxt.yxl.pojo.AQuestion;
import cn.sxt.yxl.pojo.ARole;


/**
 * 鐢ㄦ埛Service
 * @author wangshSxt
 *
 */
public interface IUsersService
{
	/* ---- 绠＄悊鍛樻ā鍧楀紑濮� ---- */
	/**
	 * 鏌ヨ涓�鏉＄鐞嗗憳
	 * @param condMap
	 * @return
	 */
	AAdmins findOneAdminsService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneAdminsService(AAdmins admins);
	
	/**
	 * 鏇存柊涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 */
	JSONObject updateOneAdminsService(AAdmins admins);
	
	/**
	 * 鍒犻櫎涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 */
	JSONObject deleteOneAdminsService(AAdmins admins);
	
	/**
	 * 鏌ヨ澶氭潯绠＄悊鍛�
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AAdmins> findCondListAdminsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	/* ---- 绠＄悊鍛樻ā鍧楃粨鏉� ---- */
	
	/* ---- 瑙掕壊妯″潡寮�濮� ---- */
	/**
	 * 鏌ヨ涓�鏉¤鑹�
	 * @param condMap
	 * @return
	 */
	ARole findOneRoleService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉¤鑹�
	 * @param role
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneRoleService(ARole role);
	
	/**
	 * 鏇存柊涓�鏉¤鑹�
	 * @param role
	 * @return
	 */
	JSONObject updateOneRoleService(ARole role);
	
	/**
	 * 鍒犻櫎涓�鏉¤鑹�
	 * @param role
	 * @return
	 */
	JSONObject deleteOneRoleService(ARole role);
	
	/**
	 * 鏌ヨ澶氭潯瑙掕壊
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<ARole> findCondListRoleService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	/* ---- 瑙掕壊妯″潡缁撴潫 ---- */
	/**
	 * 鏌ヨ涓�鏉＄鐞嗗憳
	 * @param condMap
	 * @return
	 */
	AColumns findOneColumnsService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneColumnsService(AColumns columns);
	
	/**
	 * 鏇存柊涓�鏉＄鐞嗗憳
	 * @param columns
	 * @return
	 */
	JSONObject updateOneColumnsService(AColumns columns);
	
	/**
	 * 鍒犻櫎涓�鏉＄鐞嗗憳
	 * @param columns
	 * @return
	 */
	JSONObject deleteOneColumnsService(AColumns columns);
	
	/**
	 * 鏌ヨ澶氭潯绠＄悊鍛�
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AColumns> findCondListColumnsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	/**
	 * 鏌ヨ涓�鏉＄鐞嗗憳
	 * @param condMap
	 * @return
	 */
	AItems findOneItemsService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneItemsService(AItems items);
	
	/**
	 * 鏇存柊涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject updateOneItemsService(AItems items);
	
	/**
	 * 鍒犻櫎涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject deleteOneItemsService(AItems items);
	
	/**
	 * 鏌ヨ澶氭潯绠＄悊鍛�
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AItems> findCondListItemsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	/**
	 * 鏌ヨ涓�鏉＄鐞嗗憳
	 * @param condMap
	 * @return
	 */
	AQuestion findOneQuestionService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneQuestionService(AQuestion question);
	
	/**
	 * 鏇存柊涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject updateOneQuestionService(AQuestion question);
	
	/**
	 * 鍒犻櫎涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject deleteOneQuestionService(AQuestion question);
	
	/**
	 * 鏌ヨ澶氭潯绠＄悊鍛�
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AQuestion> findCondListQuestionService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);

	
	
	/**
	 * 鏌ヨ涓�鏉＄鐞嗗憳
	 * @param condMap
	 * @return
	 */
	AAnswer findOneAnswerService(Map<String, Object> condMap);
	
	/**
	 * 淇濆瓨涓�鏉＄鐞嗗憳
	 * @param admins
	 * @return
	 * {"code":"","info":"","data":{}}
	 */
	JSONObject saveOneAnswerService(AAnswer answer);
	
	/**
	 * 鏇存柊涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject updateOneAnswerService(AAnswer answer);
	
	/**
	 * 鍒犻櫎涓�鏉＄鐞嗗憳
	 * @param items
	 * @return
	 */
	JSONObject deleteOneAnswerService(AAnswer answer);
	
	/**
	 * 鏌ヨ澶氭潯绠＄悊鍛�
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AAnswer> findCondListAnswerService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);

}
